1. More Types

نویسنده

  • Prasun Dewan
چکیده

So far, we have looked at a number of predefined primitive types defined by Java, including int, double, byte, short, long, and float. In this section, we study three new predefined types. One of these types, char, is a primitive type, while the remaining two are object types. char The computer must often process characters. Most programs accept character input and produce character output. In fact, some programs, such as a spelling checker, perform most of their computations in terms of characters. Characters are the building blocks for the strings we have seen before. This type defines a variety of characters including the English letters (both lowercase, a..z, and uppercase, A..Z), the decimal digits 0..9; " whitespace " characters such as blank and tab; separators such as comma, semicolon, and newline; and other characters on our keyboard. A character can be represented in a program by enclosing its print representation in single quotes: " A " " Z " " 1 " " 0 " " " Two consecutive single-quotes denote a special character called the null character: " " The null character is used to mark the end of a string. It is not useful to print it since Java prints nothing for it. How do we represent the single-quote character itself? We could enclose it in single-quotes: " " " However, Java would match the first two single-quotes as the null character, and think you have an extra single-quote character. So, instead, it defines the following representation for a single-quote: " \ " " 1  Copyright Prasun Dewan, 2000.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The effect of rock types on pore volume compressibility of limestone and dolomite samples

Determination of porosity, permeability, and pore volume compressibility of reservoir rocks and those variations with effective stress changes are of great interest in petroleum engineering. This paper has studied the influence of pore types of carbonate reservoir rocks on pore volume compressibility as well as Klinkenberg permeability and porosity at different stress values. In the current stu...

متن کامل

Citation and the Construction of Subdisciplinary Knowledge

The main purpose of this study was to examine the citation patterns of discussion sections employed by local and international article writers in ESP and EGP subdisciplines of applied linguistics. Eighty article discussion sections were selected from well-established local and international journals in the field of applied linguistics, and they were sorted according to Thompson and Tribble’s (2...

متن کامل

Comparison of Three Decision-Making Models in Differentiating Five Types of Heart Disease: A Case Study in Ghaem Sub-Specialty Hospital

Introduction: cardiovascular diseases are becoming the main cause of mortality and morbidity in most countries. This research goal was to predict the types of heart diseases for more accurate diagnosis by data mining and neural network technics. Method: This research was an applied-survey study and after data preprocessing, three approaches of neural network, decision making tree and Bayes simp...

متن کامل

Cloze-Elide Test as an Alternative Test Method: Linking Personality Types to Test Method Performance

More innovative test methods may measure language learners’ test performance more accurately, contributing to much fairer decisions. This study examined Iranian language learners’ performance on cloze-elide test as an innovative, integrative test method. It specifically focused on investigating whether personality types correlated with their performance and whether personality types could predi...

متن کامل

Comparison of Three Decision-Making Models in Differentiating Five Types of Heart Disease: A Case Study in Ghaem Sub-Specialty Hospital

Introduction: cardiovascular diseases are becoming the main cause of mortality and morbidity in most countries. This research goal was to predict the types of heart diseases for more accurate diagnosis by data mining and neural network technics. Method: This research was an applied-survey study and after data preprocessing, three approaches of neural network, decision making tree and Bayes simp...

متن کامل

Effectiveness of different types of learning materials used by students in courses of basic medical sciences

Introduction. Learning materials (LMs), are submitted to students in different types, from class notes to referring students to different references, which can have different effectiveness. Therefore, evaluation of effectiveness of commonly used types can help the university faculties in selection of more appropriate LMs for students. Methods. 1. The data regarding the types of LMs used in di...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007